import request from '@/utils/request'
//错题集接口
export function testSubjectsErrorQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/testSubjectsError/query',
    params: data,
  })
}

export function testSubjectsErrorQueryById(id) {
  //查询
  return request({
    method: 'get',
    url: '/testSubjectsError/query/' + id,
  })
}

export function testSubjectsErrorAdd(data) {
  //添加
  return request({
    method: 'post',
    url: '/testSubjectsError/add',
    data,
  })
}

export function testSubjectsErrorDelete(id) {
  //删除
  return request({
    method: 'get',
    url: '/testSubjectsError/delete/' + id,
  })
}

export function testSubjectsErrorDeleteBySubjectsId(id) {
  //通过题目id删除
  return request({
    method: 'get',
    url: '/testSubjectsError/deleteBySubjectsId/' + id,
  })
}

export function testSubjectsErrorUpdate(data) {
  //修改
  return request({
    method: 'post',
    url: '/testSubjectsError/update',
    data,
  })
}

export function testSubjectsErrorDeleteBatch(data) {
  //批量删除
  return request({
    method: 'post',
    url: '/testSubjectsError/deleteBatch',
    data,
  })
}

export function testSubjectsErrorCheckSubjects(data) {
  //批量查询收藏状态
  return request({
    method: 'post',
    url: '/testSubjectsError/checkSubjects',
    data,
  })
}
